﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace Benefit.Interface.Config
{
    /// <summary>
    /// 用户权限设定
    /// </summary>
    public interface IUserPrower
    {
        /// <summary>
        /// 判断用户是否具有某项权限
        /// </summary>
        /// <param name="userid"></param>
        /// <returns></returns>
        bool UserHasPrower(int userid, string prowerName);
        /// <summary>
        /// 判断操作员是否具有某项权限
        /// </summary>
        /// <param name="operatorid"></param>
        /// <returns></returns>
        bool OperatorHasPrower(int operatorid, string prowerName);
    }
}